
#include <iostream>
#include <iomanip>

#include "Reference.h"
#include "Article.h"

using std::cout;
using std::endl;

int main (int argc, char * const argv[]) 
{  
 
 /* Creation of three objects instance of the class Article named A1, A2 and A3 */
 Article* A1 = new Article ();
 Article* A2 = new Article ();
 Article* A3 = new Article ();
 
 /* Test of the funcion "print", testing thus the following functions : { "getId", "getAuthor", "getTitle" "getDepartment", "getInstitution" "getNumberOfPages", and "getYearOfPublicaton" }*/
 cout << "* Let's test the TechReport's data members by giving them their default values, then we find : " <<endl;
 A1->print();
 A2->print();
 A3->print();
 
 A1->setId(5427);
 A1->setYearOfPublication(1975);
 A1->setAuthor(" Hamza SHAWY ");
 A1->setTitle(" THE MYSTERIOUS KNOWLEDGE  "); 
 A1->setStartPage(2);
 A1->setEndPage(7);  
 A1->setJournalInformations(" This article is presented in the 5th Edition of a specialized magazine whose name is: \"SCIENCES\" " ); 

 
 A2->setId(01654);
 A2->setYearOfPublication(1989);
 A2->setAuthor(" Jonathan SCHRODER ");
 A2->setTitle(" HIGH HOPES "); 
 A2->setStartPage(4);
 A2->setEndPage(9); 
 A2->setJournalInformations(" This article is presented in the 3rd Edition of a specialized magazine whose name is: \"LIFES\"  "); 

 
 A3->setId(3069);
 A3->setYearOfPublication(2002);
 A3->setAuthor(" Issa FORTIN ");
 A3->setTitle(" THEIR PARADISE  ");
 A3->setStartPage(17);
 A3->setEndPage(21); 
 A3->setJournalInformations(" This article is presented in the 1st Edition ofa specialized magazine whose name is: \"DREAMS\"  "); 
  
 cout << "* Then, let's give values to the attributs of the class Article ! We find thus : " <<endl;
 A1->print();
 A2->print();
 A3->print();
 
 #ifdef WIN32
 system("PAUSE");
 #endif
 
 return 0;
 }
